using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

namespace LS.GameKit 
{
    public class SingleCommandHandler : CommandHandler
    {
        public CommandType handlerType;
        public UnityEvent triggerEvent = new UnityEvent();

        public override void PerformCommand(CommandType command, params object[] args)
        {
            if(command == handlerType)
            {
                triggerEvent.Invoke();
            }
        }
    }
}
